using System;
using UnityEngine;
using UnityEngine.UI;

namespace PKGames
{
	public class TestWindowController : AbstractWindow
	{
		[SerializeField]
		private Button _backButon;

		public override void SetupWindow(GameObject windowHolder, Action<AbstractWindow, bool> closeWindow, Action<GameObject> destroyWindow, object[] args)
		{
			base.SetupWindow(windowHolder, closeWindow, destroyWindow, args);
			_backButon.onClick.AddListener(Close);
		}

		private void Close()
		{
			CloseWindow();
		}
	}
}
